﻿@using SH = EMoney.IStock.Client.Framework.StringHelper;
@using EMoney.IStock.Client.Models.QQ;
@using EMoney.IStock.Client.Framework;
@{
    //高手揭秘左侧
    ViewBag.Title = "rank_gsjm_left";

    string zpm = "",  zzc = "", cw = "", drsy = "";
    decimal zsy = 0;
    Assets assets = (Assets)ViewBag.Assets;
    if(assets != null)
    {
        AssetsData assetsdata = assets.data;
        if(assetsdata != null)
        {
            zpm = assetsdata.rankIndex;
            zsy = assetsdata.totalrate;
            zzc = assetsdata.total_zc;
            cw = assetsdata.cangwei;
            drsy = assetsdata.rankDayIndex;
        } 
    }
    string userpic = "";
    if (ViewBag.UserPic != null)
    {
        userpic = ViewBag.UserPic.ToString();
    }
    string nickname = "";
    if(ViewBag.NickName != null)
    {
        nickname = ViewBag.NickName.ToString();     
    }
}
<dl>
    <dt><a hidefocus="true" href="javascript:;"><img src="@(userpic)" /></a></dt>
    <dd><span title="@(nickname)">@(StringHelper.StringSubstrLen(nickname,10))</span></dd>
</dl>
<ul>
    <li><span class="uncover_font01">总排名：</span><span class="@(StringHelper.FormatQQColor(decimal.Parse(zpm)))">@(zpm)</span></li>
    <li><span class="uncover_font01">总收益率：</span><span class="@(StringHelper.FormatQQColor(zsy))">@(StringHelper.FormatDecimal(zsy))%</span></li>
    <li><span class="uncover_font01">总资产：</span><span class="@(StringHelper.FormatQQColor(decimal.Parse(zzc)))">@(zzc)</span></li>
    <li><span class="uncover_font01">仓位：</span>@(cw)%</li>
    <li><span class="uncover_font01">当日收益：</span><span class="red">-</span></li>
</ul>
